/* Licensed under the Apache License, Version 2.0 (the "License") http://www.apache.org/licenses/LICENSE-2.0 */
#chatPanel {
	position: fixed;
	z-index: 2000;
	bottom: 0px;
	right: 10px;
	width: var(--chat-width);
	height: var(--chat-height);
}
#chatPanel #chatPopup {
	height: 100%;
}
#chat {
	height: calc(100% - 20px);
}
#chat .btn-toolbar {
	margin-top: 2px;
	margin-bottom: 0;
	margin-left: 5px;
}
#chat #chatTabs.ui-tabs {
	padding: 0;
	height: calc(100% - var(--chat-tools-height) - var(--chat-msg-height) - var(--buffer-size));
}
#chat #chatTabs.ui-tabs .ui-tabs-nav {
	padding: 0;
	max-height: var(--chat-tabs-height);
	height: var(--chat-tabs-height);
	overflow: hidden;
}
#chat #chatTabs.ui-tabs .ui-tabs-nav li {
	margin: 0;
}
#chat #chatTabs.ui-tabs .ui-tabs-nav li .ui-icon.ui-icon-close {
	float: left;
}
#chat #chatTabs.ui-tabs .ui-tabs-nav .ui-tabs-anchor {
	padding: 2px .5em;
	float: left;
}
#chatPopup .control.block .ui-icon {
	text-align: center;
}
#chatPopup .control.block .label {
	display: inline-block;
	width: 70px;
	padding-left: 5px;
}
#chat .messageArea .time {
	margin-right: 5px;
	font-style: italic;
	font-size: smaller;
}
#chat .messageArea .user-row {
	background-size: 38px, 38px;
	background-repeat: no-repeat;
	padding-left: 40px;
	min-height: 40px;
}
#chat .messageArea .icons {
	display: none;
	position: absolute;
	z-index: 1;
	left: 50px;
}
html[dir="rtl"] #chat .messageArea .icons {
	left: initial;
	right: 50px;
}
#chat .messageArea .from {
	margin-left: 5px;
	margin-right: 5px;
	font-weight: bold;
}
#chat .messageArea .date-row {
	text-align: center;
	font-style: italic;
	padding: 5px 0;
}
.ui-tabs .ui-tabs-panel.messageArea {
	height: calc(100% - var(--chat-tabs-height));
	overflow-y: auto;
	padding: 0 5px;
	position: relative;
}
#chatMessage {
	margin-right: 22px;
	height: var(--chat-msg-height);
	max-height: var(--chat-msg-height);
}
#chatMessage .wysiwyg-editor {
	min-height: 70px;
	max-height: 70px;
}
.chat-tool-icon {
	background-repeat: no-repeat;
	background-position: center;
	background-size: 16px;
	width: 20px;
	height: 20px;
	display: inline-block;
}
.list.chat-tool-icon {
	background-image: url(images/list.png);
}
.sound.chat-tool-icon {
	background-image: url(images/sound.png);
}
.sound-mute.chat-tool-icon {
	background-image: url(images/sound_mute.png);
}
.save.chat-tool-icon {
	background-image: url(images/file_save_as.png);
}
#chat #hyperlink {
	background-image: url(images/link.png);
}
#chat #fontStyle span {
	background-image: url(images/settings.png);
}
.send-ctrl.chat-tool-icon {
	background-image: url(images/key_ctrl.png);
	background-position: 0px 0px;
	background-size: 25px;
}
#chat .chat-btn {
	display: inline-block;
	float: right;
}
#chat .chat-btn:first-of-type {
	margin-right: 10px;
}
#chat .send {
	width: 16px;
	display: inline-block;
	position: absolute;
	right: 0;
	top: 0;
	height: 60px;
	padding-left: 0;
	padding-right: 0;
	margin-right: 0;
	margin-left: 0;
}
#chat .tool-container {
	max-height: var(--chat-tools-height);
	height: var(--chat-tools-height);
}
/* room mode */
.main.room #chatPanel {
	right: 0px;
	top: var(--room-menu-height);
}
html[dir="rtl"] .main.room #chatPanel {
	right: auto !important; /* IE */
	right: initial !important;
	left: 0px;
}
.main.room #chatPanel #chat form {
	position: absolute;
	bottom: 0px;
	left: 1px;
	width: 100%;
}
.main.room #chatPanel.closed #chatPopup .control.block {
	height: 100% !important;
}
.main.room #chatPanel.closed #chatPopup .control.block .label {
	transform: rotate(90deg);
	transform-origin: -15% 68% 0;
	position: absolute;
	top: 0;
	right: -73px;
}
.main.room #chatPanel.closed #chatPopup #chat {
	display: none;
}
ul.dropdown-menu.btns-only, ul.dropdown-menu.btns-only li {
	max-width: 62px;
	min-width: 62px;
}
ul.dropdown-menu.btns-only li .chat-btn {
	float: none !important;
}
